package com.myproject.mall.domain.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OrderStatus {
    UNPAID(0, "待支付"),
    PAID(1, "已支付"),
    UNRECEIVED(2, "待收货"),
    COMPLETED(3, "已完成"),
    REFUND(4, "退款"),
    CANCELED(5, "取消"),
    DELETED(9, "删除"),
    ;

    @EnumValue
    private final Integer code;
    @JsonValue
    private final String message;
}
